<html>
	<head>
	<script type="text/javascript" src="jquery.min.js"></script>
	 <script>
	 	 var loaded = new Object();  
		function loadHtml(id){
			alert("loadhtml");
			if(loaded[id]){
				alert("loaded");
				return false;				
			}
			var html = $.trim(document.getElementById(id).innerHTML);
			
			html = html.substring(11,html.length-14);
			alert(html);
			$("#fast_model").appendTo("#fast_model_lazy");
			//$(document.body).append($(html));
			
			loaded[id]=1;
			return true;
		}
		function click1(){
			loadHtml("fast_model_lazy");
			
			$("#fast_model_lazy").showDialog();
			alert("dddd");
			
		}
		function click2(){
			loadHtml("fast_model2_lazy");
			$("#fast_model2_lazy").showDialog();
		}
	 </script>
</head>
<body>
	 <button onclick="click1()">first window</button>
	 <button onclick="click2()">second window</button>
	 hello
	 <div id="fast_model_lazy">
	   
	   <div style="display: none;" id="fast_model" class="model">
	   		<script type="text/javascript">
	   			alert("hide or not ");
	   		</script>
	   		....html
	   </div>
	  
	 </div>
	
	 <div id="fast_model2_lazy">
	   <!--[lazy]>
	   <div id="fast_model2" class="model">
	   		....这里省略html
	   </div>
	  <![endlazy]-->
	 </div>
	 </body>
</html>